package com.gohi.main.user.hbm;

import com.gohi.main.util.global.GloblConfig;

/**
 * <B>会员信息</B>
 * @author 肖得明<br>
 * 2015年4月11日10时54分40秒
 */public class ShopgooMember extends com.gohi.core.model.BaseModel{
    //
    private Integer member_id ;
    //会员账号
    private String member_name ;
    //密码
    private String password ;
    //昵称
    private String nickname ;
    //性别 0.保密 1.男 2.女
    private String gender ;
    //邮箱地址
    private String email ;
    //移动电话
    private String mobile ;
    //邮编
    private String zipcode ;
    //收件人
    private String shipped_to_name;
    //地址
    private String address ;
    //庭家电话
    private String telephone ;
    //常居地
    private String usercity ;
    //会员头像
    private String avatar ;
    //自我介绍
    private String introduce ;
    //登陆时间
    private Integer login_time ;
    //登陆次数
    private Integer login_num ;
    //评论数
    private Integer comment_num ;
    //存款预
    private Integer predeposit ;
    //积分
    private Integer point ;
    //找回密码邮箱验证码
    private String email_code ;
    //预存款支付密码
    private String pay_password ;
    //会员等级
    private String member_degree ;
    //会员积分
    private Integer member_point ;
    //会员贡献值
    private Integer member_contribution ;
    //省
    private String province ;
    //市
    private String city ;
    //区
    private String district ;
    //注册时间
    private Integer register_time ;
    private String sex;
    
    
    
    public String getSex() {
    	if(gender==null || gender.equals("0")){
    		return "保密";	
    	}else if(gender.equals("1")){
    		return "男";
    	}else{
    		return "女";
    	}
    		
		
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
     *
     **/
    public Integer getMember_id() {
        return this.member_id;
    }

    /**
     * @param member_id 
     **/
    public Integer setMember_id(Integer member_id) {
        return this.member_id=member_id;
    }

    /**
     *会员账号
     **/
    public String getMember_name() {
        return this.member_name;
    }

    /**
     * @param member_name 会员账号
     **/
    public String setMember_name(String member_name) {
        return this.member_name=member_name;
    }

    /**
     *密码
     **/
    public String getPassword() {
        return this.password;
    }

    /**
     * @param password 密码
     **/
    public String setPassword(String password) {
        return this.password=password;
    }

    /**
     *昵称
     **/
    public String getNickname() {
        return this.nickname;
    }

    /**
     * @param nickname 昵称
     **/
    public String setNickname(String nickname) {
        return this.nickname=nickname;
    }

    /**
     *性别 0.保密 1.男 2.女
     **/
    public String getGender() {
        return this.gender;
    }

    /**
     * @param gender 性别 0.保密 1.男 2.女
     **/
    public String setGender(String gender) {
        return this.gender=gender;
    }

    /**
     *邮箱地址
     **/
    public String getEmail() {
        return this.email;
    }

    /**
     * @param email 邮箱地址
     **/
    public String setEmail(String email) {
        return this.email=email;
    }

    /**
     *移动电话
     **/
    public String getMobile() {
        return this.mobile;
    }

    /**
     * @param mobile 移动电话
     **/
    public String setMobile(String mobile) {
        return this.mobile=mobile;
    }

    /**
     *邮编
     **/
    public String getZipcode() {
        return this.zipcode;
    }

    /**
     * @param zipcode 邮编
     **/
    public String setZipcode(String zipcode) {
        return this.zipcode=zipcode;
    }

    /**
     *收件人
     **/
    public String getShipped_to_name() {
        return this.shipped_to_name;
    }

    /**
     * @param shipped_to_name 收件人
     **/
    public String setShipped_to_name(String shipped_to_name) {
        return this.shipped_to_name=shipped_to_name;
    }

    /**
     *地址
     **/
    public String getAddress() {
        return this.address;
    }

    /**
     * @param address 地址
     **/
    public String setAddress(String address) {
        return this.address=address;
    }

    /**
     *庭家电话
     **/
    public String getTelephone() {
        return this.telephone;
    }

    /**
     * @param telephone 庭家电话
     **/
    public String setTelephone(String telephone) {
        return this.telephone=telephone;
    }

    /**
     *常居地
     **/
    public String getUsercity() {
        return this.usercity;
    }

    /**
     * @param usercity 常居地
     **/
    public String setUsercity(String usercity) {
        return this.usercity=usercity;
    }

    /**
     *会员头像
     **/
    public String getAvatar() {
    	if(avatar==null){
    		return "./image/employee.jpg";
    	}else if(avatar.indexOf("http")!=-1){
    	    return this.avatar;
    	}else{
    	    return GloblConfig.IMG_HEAD+this.avatar;
    	}
    	
    
    }

    /**
     * @param avatar 会员头像
     **/
    public String setAvatar(String avatar) {
        return this.avatar=avatar;
    }

    /**
     *自我介绍
     **/
    public String getIntroduce() {
        return this.introduce;
    }

    /**
     * @param introduce 自我介绍
     **/
    public String setIntroduce(String introduce) {
        return this.introduce=introduce;
    }

    /**
     *登陆时间
     **/
    public Integer getLogin_time() {
        return this.login_time;
    }

    /**
     * @param login_time 登陆时间
     **/
    public Integer setLogin_time(Integer login_time) {
        return this.login_time=login_time;
    }

    /**
     *登陆次数
     **/
    public Integer getLogin_num() {
        return this.login_num;
    }

    /**
     * @param login_num 登陆次数
     **/
    public Integer setLogin_num(Integer login_num) {
        return this.login_num=login_num;
    }

    /**
     *评论数
     **/
    public Integer getComment_num() {
        return this.comment_num;
    }

    /**
     * @param comment_num 评论数
     **/
    public Integer setComment_num(Integer comment_num) {
        return this.comment_num=comment_num;
    }

    /**
     *存款预
     **/
    public Integer getPredeposit() {
        return this.predeposit;
    }

    /**
     * @param predeposit 存款预
     **/
    public Integer setPredeposit(Integer predeposit) {
        return this.predeposit=predeposit;
    }

    /**
     *积分
     **/
    public Integer getPoint() {
        return this.point;
    }

    /**
     * @param point 积分
     **/
    public Integer setPoint(Integer point) {
        return this.point=point;
    }

    /**
     *找回密码邮箱验证码
     **/
    public String getEmail_code() {
        return this.email_code;
    }

    /**
     * @param email_code 找回密码邮箱验证码
     **/
    public String setEmail_code(String email_code) {
        return this.email_code=email_code;
    }

    /**
     *预存款支付密码
     **/
    public String getPay_password() {
        return this.pay_password;
    }

    /**
     * @param pay_password 预存款支付密码
     **/
    public String setPay_password(String pay_password) {
        return this.pay_password=pay_password;
    }

    /**
     *会员等级
     **/
    public String getMember_degree() {
        return this.member_degree;
    }

    /**
     * @param member_degree 会员等级
     **/
    public String setMember_degree(String member_degree) {
        return this.member_degree=member_degree;
    }

    /**
     *会员积分
     **/
    public Integer getMember_point() {
        return this.member_point;
    }

    /**
     * @param member_point 会员积分
     **/
    public Integer setMember_point(Integer member_point) {
        return this.member_point=member_point;
    }

    /**
     *会员贡献值
     **/
    public Integer getMember_contribution() {
        return this.member_contribution;
    }

    /**
     * @param member_contribution 会员贡献值
     **/
    public Integer setMember_contribution(Integer member_contribution) {
        return this.member_contribution=member_contribution;
    }

    /**
     *省
     **/
    public String getProvince() {
        return this.province;
    }

    /**
     * @param province 省
     **/
    public String setProvince(String province) {
        return this.province=province;
    }

    /**
     *市
     **/
    public String getCity() {
        return this.city;
    }

    /**
     * @param city 市
     **/
    public String setCity(String city) {
        return this.city=city;
    }

    /**
     *区
     **/
    public String getDistrict() {
        return this.district;
    }

    /**
     * @param district 区
     **/
    public String setDistrict(String district) {
        return this.district=district;
    }

    /**
     *注册时间
     **/
    public Integer getRegister_time() {
        return this.register_time;
    }

    /**
     * @param register_time 注册时间
     **/
    public Integer setRegister_time(Integer register_time) {
        return this.register_time=register_time;
    }

}